package com.power.project.model.bo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Author mrzhao
 * @CreateDate 2024/6/26 16:16
 * @Desc TODO
 * @Version 1.0
 */
@Data
public class DepartmentSaveBO {
    /**
     * 部门 ww_depart.departid
     */
    private String departId;

    @ApiModelProperty(value = "名称")
    @NotNull(message = "name不能为空")
    @NotEmpty(message = "name不能为空")
    private String name;

    @ApiModelProperty(value = "父级部门，null表示无父级部门")
    private String parentId;

    @ApiModelProperty(value = "租户id")
    private String tenantId;

}
